// uart_print.c
#include "uart_print.h" 

static UART_HandleTypeDef *huart_print;

int uart_print_init(const UART_HandleTypeDef *pUart)
{
  huart_print = pUart;
  return 0;
}

// #ifdef __GNUC__
//   /* With GCC, small printf (option LD Linker->Libraries->Small printf
//      set to 'Yes') calls __io_putchar() */
// int __io_putchar(int ch)
// #else
// int fputc(int ch, FILE *f)
// #endif /* __GNUC__ */
// {
//   /* Place your implementation of fputc here */
//   /* e.g. write a character to the UART3 and Loop until the end of transmission */
//   HAL_UART_Transmit(huart_print, (uint8_t *)&ch, 1, HAL_MAX_DELAY);

//   return ch;
// }
